﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp16
{
    public class Student : IPerson, IStudent
    {
        private string _name;
        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        private string _studentid;
        public string StudentId
        {
            get
            {
                return _studentid;
            }
            set
            {
                _studentid = value;
            }
        }

        void IPerson.Show(string name)

            {
                Console.WriteLine("姓名为{0}", name);
            }

            void IStudent.Show(string studentid)

            {
                Console.WriteLine("学号为{0}", studentid);
            }
        
    }
}
